package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.*;

import java.util.List;

@Table("site_info")
public class SiteInfo {

    @Id
    private int siteId;//地点id

    @Name
    private String siteName;//地点名称

    @Column
    private String description;

    @Column
    private int mapId;//对应所在的地图id

    @Column
    private int xSite;//所在地图的x坐标

    @Column
    private int ySite;//y坐标

    @ManyMany(relation = "site_problem",from = "siteId",to = "problemId")
    private List<Problem> problems;

    public int getSiteId() {
        return siteId;
    }

    public String getSiteName() {
        return siteName;
    }

    public String getDescription() {
        return description;
    }

    public int getMapId() {
        return mapId;
    }

    public int getxSite() {
        return xSite;
    }

    public int getySite() {
        return ySite;
    }

    public List<Problem> getProblems() {
        return problems;
    }

    public void setProblems(List<Problem> problems) {
        this.problems = problems;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setMapId(int mapId) {
        this.mapId = mapId;
    }

    public void setxSite(int xSite) {
        this.xSite = xSite;
    }

    public void setySite(int ySite) {
        this.ySite = ySite;
    }
}
